package org.locker.domain.bo;

import org.locker.domain.BluetoothVersion;
import org.locker.common.mybatis.core.domain.BaseEntity;
import org.locker.common.core.validate.*;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 蓝牙升级信息业务对象 lk_bluetooth_version
 *
 * @author winnie
 * @date 2023-10-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BluetoothVersion.class, reverseConvertGenerate = false)
public class BluetoothVersionBo extends BaseEntity {

    /**
     * 设备ID
     */
    @NotNull(message = "设备ID不能为空", groups = { EditGroup.class })
    private Long bluetoothVersionId;

    /**
     * 场地ID
     */
    @NotNull(message = "场地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long positionId;

    /**
     * 设备号
     */
    @NotBlank(message = "设备号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceNo;

    /**
     * 版本名称
     */
    @NotBlank(message = "版本名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String versionName;

    /**
     * 版本号
     */
    @NotBlank(message = "版本号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String versionCode;

    /**
     * 文件地址
     */
    @NotBlank(message = "文件地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileUrl;

    /**
     * 文件MD5
     */
    private String fileMd5;

    /**
     * 最小升级版本
     */
    private String miniVersionCode;

    /**
     * 渠道号
     */
    @NotBlank(message = "渠道号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileChannel;

    /**
     * 备注说明
     */
    private String remark;


    /**
     * 状态：open 开启，close  关闭
     */
    private String status;

}
